<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String baseBath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<base href="<%=baseBath%>">
<%@include file="../common_css.jsp"%>
<form class="layui-form" style="width:80%;">
    <input type="hidden" name="id" value="${permission.id}">
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">权限描述</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input userName"
                   lay-verify="required" name="describe" value="${permission.describe}"  >
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">权限名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input userName"
                   lay-verify="required" name="name"  value="${permission.name}" >
        </div>
    </div>


    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">权限级别</label>
        <div class="layui-input-block">
            <select name="grade" disabled >

                <option value="0" >一级权限</option>
                <option value="1"  <c:if test="${permission.grade==0}">selected</c:if>>二级权限</option>
                <option value="2"  <c:if test="${permission.grade==0}">selected</c:if>>三级权限</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">权限url</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input userName"
                   lay-verify="required" name="url"  value="${permission.url}" >
        </div>
    </div>

    <!--
       添加根级菜单
    -->
    <input name="parent" type="hidden" value="${permission.parent}"/>
    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    lay-filter="updateModule">确认
            </button>
            <button class="layui-btn layui-btn-lg layui-btn-normal">取消</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="com/js/module/update.js"></script>
</body>
</html>
